package com.cxz.study.ddd_project.infrastructure.repository.db.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cxz.study.ddd_project.infrastructure.model.dto.base.WhSerialNoRecordDTO;
import com.cxz.study.ddd_project.infrastructure.model.entity.base.WhSerialNoRecordDO;
import com.cxz.study.ddd_project.infrastructure.repository.db.mapper.WhSerialNoRecordMapper;
import com.cxz.study.ddd_project.infrastructure.service.base.WhSerialNoRecordService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Objects;

/**
 * @className: WhSerialNoRecordServiceImpl
 * @author: ocxz1
 * @date: 2024/12/29 下午8:52
 * @Version: 1.0
 * @description: ddd_project1 数据访问实现层
 */
@Service
public class WhSerialNoRecordServiceImpl extends ServiceImpl<WhSerialNoRecordMapper, WhSerialNoRecordDO> implements WhSerialNoRecordService {
    /**
     * 列表查询
     *
     * @param dto 查询条件，DTO
     * @return 返回查询的列表数据
     */
    @Override
    public List<WhSerialNoRecordDO> findList(WhSerialNoRecordDTO dto) {
        if (Objects.isNull(dto)) {
            return null;
        }

        return baseMapper.findList(dto);
    }
}
